import java.util.Arrays;
import java.util.List;

public class ConsoleIO {

    static{
        System.loadLibrary("jni");
    }

    public native static double read(double defaultValue);
    public native static void printStr(String text);
    public native static void printList(List<String> list);

    public static void main(String[] args) {
        double read = ConsoleIO.read(-1);
        System.out.println("read=" + read);
        ConsoleIO.printStr("hi jni!");
        ConsoleIO.printList(Arrays.asList("hi","jni"));
    }


}